<?php

namespace App\V3\V3_1\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class DbExpressTemplateModel extends Model
{
    use HasFactory;
    protected $table = 'db_express_templates';
    protected $primaryKey = 'id';
    public $timestamps = false;
    static public function addDbExpressTemplate($data){

        return DbExpressTemplateModel::insertGetId($data);
    }

    static public function updDbExpressTemplate($condition,$data){

        return DbExpressTemplateModel::where($condition)->update($data);
    }

    static public function getDbExpressTemplateInfo($condition){

        return DbExpressTemplateModel::where($condition)->first();
    }
}
